'''
Author: admin@attacker.club
Date: 2022-06-20 18:08:05
LastEditTime: 2022-07-15 02:09:54
Description: 
'''
import re

line='Cats are smarter than dogs'
matchObj=re.match(r'(.*) are (\w+?).*',line)
matchObj=re.match(r'(.*) are ([a-zA-Z]* ).*',line)
if matchObj:
   print('matchObj.group():',matchObj.group())
   print('matchObj.group(1):', matchObj.group(1))
   print('matchObj.group(2):', matchObj.group(2))



line = '/steamtrade/inventory/v3/list?appId=570&steamId=76561198323682169&startAssetId=0&limit=500&scene=2'
matchObj=re.match(r'(.*?Id=)?',line)
if matchObj:
   print('matchObj.group(1):', matchObj.group(1))
#    print('matchObj.group(2):', matchObj.group(2))



line = '/inventory/76561198262674269/730/2/?l=schinese&count=5000&start_assetid=0'
matchObj=re.match(r'(.*?\w+=)?',line)
if matchObj:
   print('matchObj.group(1):', matchObj.group(1))
#    print('matchObj.group(2):', matchObj.group(2))


